package com.gxa.community.admin.service.order.impl;

import com.gxa.community.admin.mapper.order.UserInfoMapper;
import com.gxa.community.admin.service.order.UserInfoService;
import com.gxa.community.core.pojo.dto.userdto.UserInfoDTO;
import com.gxa.community.core.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public R queryUserInfoDTO(Integer userId) {
        UserInfoDTO userInfoDTO = userInfoMapper.selectUserInfoDTOByUserId(userId);
        return R.ok("查询成功！").put("data",userInfoDTO);
    }
}
